﻿using Microsoft.AspNetCore.Builder;

namespace Core.Middleware.StaticFileCacheing
{
    /// <summary>
    /// 启用静态缓存
    /// </summary>
    public static class UseStaticFileCache
    {
        /// <summary>
        /// 启用静态缓存中间件
        /// </summary>
        /// <param name="applicationBuilder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseStaticFileCacheMidWare(this IApplicationBuilder applicationBuilder)
        {
            return applicationBuilder.UseMiddleware<StaticFileCacheMidWare>();
        }

    }
}
